package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.StrategyCatalog;
import cn.wolfcode.luowowo.common.query.StrategyCatalogQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCatalogService {
    /**
     * 查询列表数据
     * @param qo
     * @return
     */
    PageInfo query(StrategyCatalogQueryObject qo);

    /**
     * 添加或者保存
     * @param strategyCatalog
     */
    void saveOrUpdate(StrategyCatalog strategyCatalog);

    /**
     * 根据id删除
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据strategyId获取数据
     * @param strategyId
     * @return
     */
    List<StrategyCatalog> getByStrategyId(long strategyId);

    /**
     * 根据destId获取strategyCatalog
     * @param id
     * @return
     */
    List<StrategyCatalog> getCatalogsByDestId(Long id);

    StrategyCatalog getById(Long catalogId);

}
